ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Direct3D11 Namespace / DeviceContext Class / UpdateSubresourceSafe Method / UpdateSubresourceSafe<T>(T[],Resource,Int32,Int32,Int32,Int32,Boolean) Method
Type of the data to upload
A reference to the data to upload.
The destination resource.
The size in bytes per pixel/block element.
The destination subresource.
The row pitch.
The depth pitch.
if set to true the resource is a block/compressed resource

In This Topic
    UpdateSubresourceSafe<T>(T[],Resource,Int32,Int32,Int32,Int32,Boolean) Method
    In This Topic
    Copies data from the CPU to to a non-mappable subresource region.
    Syntax
    'Declaration
     
    Public Overloads Sub UpdateSubresourceSafe(Of T As {New, Struct})( _
       ByVal data() As T, _
       ByVal resource As Resource, _
       ByVal srcBytesPerElement As System.Integer, _
       Optional ByVal subresource As System.Integer, _
       Optional ByVal rowPitch As System.Integer, _
       Optional ByVal depthPitch As System.Integer, _
       Optional ByVal isCompressedResource As System.Boolean _
    ) 
    public void UpdateSubresourceSafe<T>( 
       T[] data,
       Resource resource,
       System.int srcBytesPerElement,
       System.int subresource,
       System.int rowPitch,
       System.int depthPitch,
       System.bool isCompressedResource
    )
    where T: new(), struct

    Parameters

    data
    A reference to the data to upload.
    resource
    The destination resource.
    srcBytesPerElement
    The size in bytes per pixel/block element.
    subresource
    The destination subresource.
    rowPitch
    The row pitch.
    depthPitch
    The depth pitch.
    isCompressedResource
    if set to true the resource is a block/compressed resource

    Type Parameters

    T
    Type of the data to upload
    See Also